package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 归档恢复任务业务对象
 *
 * @author ruoyi
 * @date 2024-12-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ArchiveRecoverTaskBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 归档结果id
     */
    @NotNull(message = "归档结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long resultId;

    /**
     * 恢复类型：1覆盖
     */
    @NotNull(message = "恢复类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer recoveryType;

    /**
     * 执行状态：0：执行中、1：成功、2：失败
     */
    private Integer executeStatus;

    /**
     * 恢复表名
     */
//    @NotBlank(message = "表名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tableName;
}
